<template>
  <div class="employees-container">
    <div class="app-container">
      <el-card>
        <el-tabs>
          <el-tab-pane label="登录账户设置">
            <login-setting :id="id" />
          </el-tab-pane>
          <el-tab-pane label="个人详情">
            <user-info />
          </el-tab-pane>
          <el-tab-pane label="岗位信息">
            <job-info />
          </el-tab-pane>
        </el-tabs>
      </el-card>
    </div>
  </div>
</template>

<script>
// 导入tab切换组件
import LoginSetting from './components/login-setting'
import UserInfo from './components/user-info'
import JobInfo from './components/job-info'
export default {
  name: 'Detail',
  // 导入组件名
  components: { JobInfo, LoginSetting, UserInfo },
  // 父传子,接收变量名
  props: {},
  data() {
    // 这里存放数据
    return {
      id: this.$route.params.id
    }
  },
  // 计算属性 类似于 data 概念
  computed: {},
  // 监听器 监控 data 中的数据变化
  watch: {},
  // 方法集合
  methods: {}
}
</script>

<style scoped>
</style>
